This section discusses the options displayed on the Session tab for a server profile. If the Session drop-down on the General tab is set to none, these settings have no effect. The session tab uses a table to represent the prompt/response fields used to programmatically create a TELNET session to the server.
This option defines the emulation mode used in the session output window. Terminal emulation describes the specific support of escape sequences to provide enhanced display, formatting and data input capabilities. Selecting ônoneö will not disable the session settings; it will simply ignore all escape sequences sent.
Click this button to launch the session wizard. The session wizard will take you through the complex steps required to define the prompts, responses and the format of an expression to detect the session command prompt.
This option defines the text to wait for before sending the desired response. This may be specified as a regular expression. When doing so it is recommended you use the start of line indicator ô^ö at the start of the expression.
This option defines the response to the related wait for prompt. The response field supports a number of variables which are interpreted at run-time:-
To represent |
Use |
Server profile Default User |
$(Username) |
Server profile Password |
$(Password) |
Server profile Default User and Password as a single formatted MPE login string |
$(MpeLogin) |
Tab key press |
$(Tab) |
Return key press |
$(Return) |
Check this option to display a prompt for the correct response. The contents of the response field will be displayed as the default.
This option defines the format of the session command prompt after a successful login. The correct detection of the command prompt is essential if any commands are to be executed at all. Unless the server specified uses a fixed session prompt, this must be specified as a regular expression.
This option allows a command to be executed on the server following a successful login that will change the format of the command prompt. This can be very useful if the normal session prompt is too simple or cannot be adequately represented using a regular expression.
For example, the following command changes the command prompt on a UNIX platform:
PS1=PSTUDIO4_PROMPT:
This prompt could then be detected with certainty using the following Wait For setting:
^PSTUDIO4_PROMPT: